<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<html>
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=false">
<title>测试</title>
<style>
.container {
position: absolute;
width:  600px;
height: 220px;
left: 50%;
top: 30%;
margin-left: -300px;
margin-top: -120px;
text-align: center;
}
.container h1 {
font-size: 40px;
}
.container .input {
display: block;
width: 330px;
height: 60px;
margin: 0 auto;
}
.container button {
width: 330px;
height: 70px;
font-size: 30px;
margin-top: 10px;
}
</style>
</head>

<body>

<div class="container">
    <h1>Welcome to hake</h1>
</div>
</body>


<script src="http://libs.baidu.com/jquery/2.1.1/jquery.min.js"></script>
<script type="text/javascript">

    function nowtime(){
        var mydate = new Date();
        var str = "" + mydate.getFullYear();
        var mm = mydate.getMonth()+1
        if(mydate.getMonth()>9){
            str += mm;
        } else{
            str += "0" + mm;
        }

        if(mydate.getDate()>9){
            str += mydate.getDate();
        } else{
            str += "0" + mydate.getDate();
        }

        if(mydate.getHours()>9){
            str += mydate.getHours();
        } else{
            str += "0" + mydate.getHours();
        }

        if(mydate.getMinutes()>9){
            str += mydate.getMinutes();
        } else{
            str += "0" + mydate.getMinutes();
        }

        if(mydate.getSeconds()>9){
            str += mydate.getSeconds();
        } else{
            str += "0" + mydate.getSeconds();
        }

        return str;
    }

    function RndNum(n) {
        var rnd = "";
        for (var i = 0; i < n; i++) {
            rnd += Math.floor(Math.random() * 10);
        }
        return rnd;
    }
</script>
</html>